﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace DP.RecallDeal.Interface.Requests
{
    public interface IRequest
    {
        string RequestURL { get; set; }
        IDictionary<string, string> Params { get; set; }
        string Username { get; set; }
        string Password { get; set; }

        string BuildURL();
        string BuildQueryString();

        void AddParams(IDictionary<string, string> parameters);

        Stream GetResponseStreamByGET();
        Stream GetResponseStreamByPOST();

        string GetResponseDataByGET();
        string GetResponseDataByPOST();
    }
}
